Android Application Development All-in-One For Dummies by Burd Barry

Android Application Development All-in-One For Dummies by Burd Barry

Author:Burd, Barry [Burd, Barry]
Language: eng
Format: epub
Publisher: John Wiley and Sons
Published: 2011-11-13T17:00:00+00:00


Android calls an activity’s onDestroy method whenever the user turns the device (from portrait to landscape, for example). If you put a stopService call in an activity’s onDestroy method, you must deal with all possible situations in which the service halts. For details, see this chapter’s “Talking about the Weather” section.

Running a Service at Boot Time

How important is your service? Does your service start on rare occasions when the user presses a certain button? Or does your service start when the device powers up?



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.